<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <th:block th:include="include :: header('角色列表')" />
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<!--<input type="hidden" id="data" value="${sellNo}" />-->
<div class="col-sm-12 select-table table-striped">
    <table id="bootstrap-table"></table>
</div>

<div>


</div>
<th:block th:include="include :: footer" />
<script >
    var ctx = "[[@{/}]]";
</script>
<script>
   // var data = $("#data").val();
   var prefix = ctx + "baodao/pay";


   var data = [[${sellNo}]];
    $(function() {
        console.log('参数： ' + data)
        var options = {
         //   url: ctx + "/receiptDetails/list" + "&id=" +data,
          //  url: "http://localhost:" "/receiptDetails/list" + "&id=" +data,
         //   url : "http://localhost:8005/baodao/pay/receiptDetails/list" ,
           // url : "http://localhost:8005/baodao/pay/receiptDetails/list" + '?id=' + data,
           // url : "http://localhost:8005/baodao/pay/receiptDetails/list/" +  data,
            url : prefix +"/receiptDetails/list/" +  data,
           /* createUrl: prefix + "/add",
            updateUrl: prefix + "/edit/{id}",
            removeUrl: prefix + "/remove",
            exportUrl: prefix + "/export",
            sortName: "roleSort",*/
            modalName: "小票明细",
            columns: [/*{
                checkbox: true
            },*/
                {
                    field: 'row_no',
                    title: '编号'
                },
                {
                    field: 'goodsCode',
                    title: '商品编号',
                   // sortable: true
                },
                {
                    field: 'goodsName',
                    title: '商品名称',
                   // sortable: true
                },
                {
                    field: 'price',
                    title: '单价',
                  //  sortable: true
                    align: 'right'

                },
                {
                    field: 'qty',
                    title: '数量',
                  //  sortable: true
                    align: 'center'
                },

                {
                    field: 'tkQtum',
                    title: '总价',
                    //sortable: true,
                    align: 'right'
                },]
        };
        $.table.init(options);
    });

</script>
</body>
</html>